import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
// 路由配置项
const routes = [
  {path: '/', component: require('../views/Home')}
]
// 注册路由
const router = new VueRouter({
  routes
})
// 返回路由实例
export default function () {
  return router
}
